#include"ListData.hpp"
#include<iostream>
//------------------------------------------
// function about listdata     --------------
//------------------------------------------

void ListData::init() {
  std::cin >> a;
  std::cin >> b;
}

bool ListData::operator==(ListData &comData) {
  if (this->a == comData.a && this->b == comData.b) {
    return 1;
  } else {
    return 0;
  }
}

void ListData::operator=(ListData *data) {
  this->a = data->a;
  this->b = data->b;
}

bool ListData::operator<(ListData &comData) {
  if (a * b < comData.a * comData.b) {
    return true;
  } else {
    return false;
  }
}

void ListData::show() { std::cout << a << " " << b << "\n"; }
